﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true"
    CodeFile="CandidateMaster.aspx.cs" Inherits="Admin_CandidateMaster" %>

<script runat="server">

   
</script>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
    <table style="width: 100%" id="TABLE1" cellspacing="1" cellpadding="1" border="0">
        <tbody>
            <tr>
                <td style="height: 30px; text-align: center" colspan="3">
                    <table id="TABLE3"  style="vertical-align: middle;width: 100%;" >
                        <tbody>
                            <tr>
                                <td colspan="2" style="text-align: left;">
                                    <h2>Candidate Data</h2>
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle;" align="right" class="auto-style3">
                                           Activity Name&nbsp;:&nbsp;
                                        </td>
                               <td style="width: 30%;vertical-align: middle; text-align: left;">
                                            <asp:DropDownList ID="activitydropdown" runat="server" Width="245px" MaxLength="50" DataValueField="ActivityName" OnSelectedIndexChanged="activitydropdown_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>

                               <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="activitydropdown" ErrorMessage="Please Select Any Activity" InitialValue="--Select--" ForeColor="Red"></asp:RequiredFieldValidator></td></tr>
                            
                            <tr>
                                <td style="vertical-align: middle;" align="right" class="auto-style3">
                                           Email Template Name&nbsp;:&nbsp;
                                        </td>
                               <td style="width: 30%;vertical-align: middle; text-align: left;">
                                            <asp:DropDownList ID="emailtemplatedropdown" runat="server" Width="245px" MaxLength="50" DataValueField="EmailSubject" AutoPostBack="true" ></asp:DropDownList>
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="emailtemplatedropdown" ErrorMessage="Field Should not left blank"  InitialValue=" " ForeColor="Red"></asp:RequiredFieldValidator>
                               </td></tr>
                                    <tr>
                                <td style="vertical-align: middle;" align="right" class="auto-style3">
                                           Email Status&nbsp;:&nbsp;
                                        </td>
                               <td style="width: 30%;vertical-align: middle; text-align: left;">
                                            <asp:DropDownList ID="emailstatus" runat="server" Width="245px" MaxLength="50">
                                                <asp:ListItem Selected="True">--Select--</asp:ListItem>
                                                <asp:ListItem>ALL</asp:ListItem>
                                                <asp:ListItem>SEND</asp:ListItem>
                                                <asp:ListItem>ERROR</asp:ListItem>
                                                <asp:ListItem>INQueue</asp:ListItem>
                                            </asp:DropDownList>
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="emailstatus" ErrorMessage="Please Select Email Status" InitialValue="--Select-- " ForeColor="Red"></asp:RequiredFieldValidator>
                               </td></tr>
                            
                               
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
             <tr>
                <td  align="center" colspan="3" >            <asp:Button ID="Button1" OnClick="BtnSearch_OnClick" runat="server"
                                                Text="Search" CausesValidation="false"></asp:Button>
                                                &nbsp;&nbsp;
                                            <asp:Button ID="Button2" OnClick="BtnClear_OnClick" runat="server"
                                                Text="Clear" CausesValidation="false"></asp:Button>&nbsp;&nbsp; <br />
                    </td>
                 </tr>
             <tr>
                <td colspan="3" style="text-align:center;"> <asp:Label runat="server" ID="lblErrorMessage"  ></asp:Label>
                    </td>
                 </tr>
            <tr>
                <td align="center"  colspan="3">
                    <div class="grd_table" style="overflow-x: auto; width: 950px;">                   
                        <asp:GridView ID="gvLanguage" runat="server" DataKeyNames="UserId" AllowPaging="True" Width="50%"
                            AutoGenerateColumns="False" OnPageIndexChanging="gvLanguage_PageIndexChanging">
                            <Columns>
                               <asp:BoundField DataField="UserID" HeaderText="User ID"  Visible="false">
                                    <ItemStyle   HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FirstName" HeaderText="First Name">
                                    <ItemStyle Width="20%" HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>  
                                 <asp:BoundField DataField="MiddleName" HeaderText="Middle Name" />
                                <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                                <asp:BoundField DataField="Email" HeaderText="Email" />
                                <asp:BoundField DataField="PasswordQuestion" HeaderText="Password Question" />
                                <asp:BoundField DataField="Gender" HeaderText="Gender" />
                                <asp:BoundField DataField="DOB" HeaderText="DOB" />
                                <asp:BoundField DataField="Comment" HeaderText="Comment" />
                                <asp:BoundField DataField="IsApproved" HeaderText="Approved" />
                                <asp:BoundField DataField="IsLockOut" HeaderText="Lockout" />
                                 <asp:BoundField DataField="IsActive" HeaderText="Status">
                                    <ItemStyle Width="3%" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField> 
                            </Columns>
                             <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" colspan="3">
                    <input id="hdnInput" runat="server" type="hidden" />
                   
                </td>
            </tr>
        </tbody>
    </table>
         
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
    <style type="text/css">
        
        .auto-style3 {
            width: 19%;
        }

        </style>
</asp:Content>

